package com.bjpowernode.boss.mvc.models.query;

import jakarta.validation.constraints.*;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class PayProductConfigQuery {

    @NotNull(message = "费率不能空")
    @DecimalMin(value = "0.01",message = "费率不能低于{value}")
    @DecimalMax(value = "100",message = "费率不能高于{value}")
    private BigDecimal payRate;

    @NotNull(message = "支付产品编码不能空")
    @Size(min = 5,max = 20,message = "支付产品编码长度在{min}-{max}")
    private String payProductCode;

    @NotNull(message = "排序不能空")
    @Min(value = 1,message = "排序从{value}开始")
    private Integer sorts;

    @NotNull(message = "支付类型编码不能空")
    @Size(min = 5,max = 20,message = "支付类型编码长度在{min}-{max}")
    private String payTypeCode;

    @NotNull(message = "支付方式编码不能空")
    @Size(min = 6,max = 20,message = "支付方式编码长度在{min}-{max}")
    private String payWayCode;

}
